setAmount

fun setAmount(newSplitAmount: Long, newParentAmount: Long)

Set the amounts for this transaction, including the amount of the transaction in the split account, and the amount of the transaction in the account of the parent transaction.


fun setAmount(newSplitAmount: Long, newRate: Double, newParentAmount: Long)

Set the amounts for this transaction, including the amount of the transaction in the split account, the rate, and the amount of the transaction in the account of the parent transaction. newParentAmount must equal -Math.round(newSplitAmount * rate). The rate is ignored unless newParentAmount or newSplitAmount are zero (thus invalidating the above equation.